<me:UIGAAUF x:Class="WPFExcelReport.TGD713AB"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
     xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
     xmlns:me="clr-namespace:WPFExcelReport" 
     xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
     xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM" 
     xmlns:ABK="clr-namespace:WPFExcelReport;assembly=TABKOPF"  
    xmlns:GS="clr-namespace:WPFExcelReport;assembly=TGSDAT"  
    xmlns:GSC="clr-namespace:WPFExcelReport;assembly=TGSCOLOR"  
    xmlns:QR="clr-namespace:WPFExcelReport;assembly=TICC_AV95RULES" 
    xmlns:GC="clr-namespace:WPFExcelReport;assembly=TGSCOLOR" 
     xmlns:G8="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIGAAUF.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:DateNYR x:Key="nyr"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:UPPERGB2312 x:Key="UGB"/> 
    </me:UIGAAUF.Resources>
    <Grid Visibility="{Binding IsAB,ElementName=TV,Converter={StaticResource bv}}">
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" /> 
        </Grid.RowDefinitions> 
        <DataGrid Grid.Row="0"  
                  Height="Auto"
                AutoGenerateColumns="False"  
                  EnableRowVirtualization="False"  
                    CanUserAddRows="False" CanUserDeleteRows="False"
                  Name="dlgMaster"  
                 ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                  HeadersVisibility="Column" 
                  CanUserReorderColumns="True"
                  CanUserResizeRows="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" 
                  Width="Auto" 
                  EnableColumnVirtualization="True" 
                  HorizontalScrollBarVisibility="Auto"
                  VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>  
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=色号}}" Binding="{Binding GAFARBE, Converter={StaticResource ResourceKey=UGB}}" Width="Auto"/> 
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=比例}}" Binding="{Binding Path=GASP1, Converter={StaticResource ResourceKey=d1000}}" Width="Auto"/>
                <DataGridTextColumn Header="{Binding Source={Localization:Translate Word=需求}}" Binding="{Binding Path=GAKG1, Converter={StaticResource ResourceKey=d100}}" IsReadOnly="True" Width="Auto"/> 
            </DataGrid.Columns>

        </DataGrid>
        
    </Grid> 
</me:UIGAAUF>
